import Cookies from 'js-cookie'

const TokenKey = 'hr_token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

const Timekey = 'hr_time'
// 设置时间
export function setTime() {
  Cookies.set(Timekey, Date.now())
}
// 拿到时间
export function getTime() {
  return Cookies.get(Timekey)
}
